package com.lyc.domain.strategy.service.rule.chain;

import lombok.extern.slf4j.Slf4j;

/**
 * @author lyc
 * @description 抽奖策略责任链
 */
@Slf4j
public abstract class AbstractLogicChain implements ILogicChain{

    private ILogicChain next;

    @Override
    public ILogicChain next() {
        return next;
    }

    @Override
    public ILogicChain appendNext(ILogicChain next) {
        this.next = next;
        return next;
    }

    /**
     * 每一条责任链对应一个策略（大）规则模型
     * @return 规则模型的名称
     */
    protected abstract String ruleModel();

}
